package com.zl.controller;

import com.zl.domain.Order;
import com.zl.feign.UserOrderFeign;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zl
 * @date 2023/3/21
 * @apiNote
 */
@RestController
public class OrderController implements UserOrderFeign {


    @Override
    public Order getOrderByUserId(Integer userId) {
        System.out.println(userId);
        Order order = Order.builder()
                .name("热干面")
                .price(8)
                .orderId(1)
                .build();
        return order;
    }

}
